#include <stdio.h>
#include <unistd.h>
#include <sys/time.h>
#include <string.h>

#include "libradarssd.h"

int main(int argc, char *argv[]){
    if(argc <= 1){
        printf("argment error, slice size not provided!\n");
        return 0;
    }

    unsigned int slice_size = 0;
    sscanf(argv[1],"%u",&slice_size);
    
    char string_send[4096] = {0};
    open_unvme();
    DMA_Send(NULL,string_send,4096,RADAR_SET_WIN,slice_size);
    close_unvme();

    printf("Set slice size to %u\n",slice_size);

    return 0;
}
